import { Button, Result } from "antd";
import { useNavigate } from "react-router-dom";
import "./index.less";

const NotAuth = () => {
	const navigate = useNavigate();
	const goHome = () => {
		navigate("/login");
	};
	return (
		<Result
			status='403'
			title='403'
			subTitle='Sorry, This may be because your login status has expired, or the user does not have enough privileges to access this page.'
			extra={
				<Button type='primary' onClick={goHome}>
					Back Login
				</Button>
			}
		/>
	);
};

export default NotAuth;
